import request from "@/utils/request";

export const actionList = (params) => {
  return request({
    url: "/v1/rbac/action/list",
    method: "get",
    params,
  });
};

export const createAction = (data) => {
  return request({
    url: "/v1/rbac/action/create",
    method: "post",
    data,
  });
};

export const updateAction = (data) => {
  return request({
    url: "/v1/rbac/action/update",
    method: "post",
    data,
  });
};

export const deleteAction = (data) => {
  return request({
    url: "/v1/rbac/action/delete",
    method: "post",
    data,
  });
};
